package HeSuanServer.uitl;

import java.util.Random;

/**
 * @描述:
 * @author: LH
 * @date: 2023/3/15
 */
public class NumberCodeUtil {
    public static Random random=new Random();
    public static void main(String[] args) {
//        for (int i = 0; i < 100; i++) {
//            System.out.println(getCode("1"));
//        }
    }
    public static String getCode(){
        String code="";
        for (int i = 0; i < 8; i++) {
            int str = random.nextInt(10);
            code=code+str;
        }
        return code;
    }
}
